find all homomorphisms from zm to zn